package cqrtplm.mapper;

import cqrtplm.entity.CodeMaterialDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

@Repository
public interface CodeMaterialMapper extends BaseMapper<CodeMaterialDO> {

    CodeMaterialDO selectCodeMaterialByColorCode(@Param("dto") CodeMaterialDO dto);

    CodeMaterialDO selectCodeMaterialByDrawingCode(@Param("dto") CodeMaterialDO dto);

    CodeMaterialDO getLastedCompositeColor(@Param("drawingCode") String drawingCode);
}
